<?php
$key = Mage::getSingleton('adminhtml/url')->getSecretKey("adminhtml/sales_order","index");
$filter_type = $this->getRequest()->getParam('filter_type','');
?>
<!-- <div class="content-header">
<table cellspacing="0">
    <tr>
        <td style="width:50%;"><h3 class="icon-head head-products"><?php echo Mage::helper('catalog')->__('订单管理') ?></h3></td>
    </tr>
</table>
</div> -->
<div class="">
<a href="<?php echo $this->getUrl('adminhtml/sales_order/index',array('key'=>$key));?>">全部</a> | <a href="?filter_type=pending_timeout">处理超时</a> | <a href="?filter_type=processing_timeout">订单超时</a>
</div>

<?php  echo $this->getChildHtml('sales_order.grid.container'); ?>

<script type="text/javascript">
	(function($){
		$(document).ready(function(){
			<?php if($filter_type == 'pending_timeout'):?>
				$(".head-sales-order").html("处理超时");
				$("#sales_order_grid_filter_status").hide();
			<?php endif;?>
			<?php if($filter_type == 'processing_timeout'):?>
				$(".head-sales-order").html("订单超时");
				$("#sales_order_grid_filter_status").hide();
			<?php endif;?>
			<?php if(!$filter_type):?>
				//$("#sales_order_grid_filter_status").hide();
			<?php endif;?>
		});
	})(jQuery);
</script>